
local MainScene = class("MainScene", function()
    return display.newScene("MainScene")
end)

function MainScene:ctor()
    cc.ui.UILabel.new({
            UILabelType = 2, text = "Hello, World", size = 64})
        :align(display.CENTER, display.cx, display.cy*3/2)
        :addTo(self)

    print('scene size : w=%g,h=%g',display.width,display.height)
    local wLabel = string.format('display.width=%g',display.width)
    local hLabel = string.format('display.height=%g',display.height)
    local label = wLabel .. '    ' .. hLabel
    cc.ui.UILabel.new({
            UILabelType = 2, text = label, size = 64})
        :align(display.CENTER, display.cx, display.cy)
        :addTo(self)

end

function MainScene:onEnter()
end

function MainScene:onExit()
end

return MainScene
